package com.huice.base;

import org.testng.IRetryAnalyzer;
import org.testng.ITestResult;

import bsh.This;

public class RetryAnalyzer implements IRetryAnalyzer{

	private int max = Config.retryTimes;
	private int cur = 1;
	
	@Override
	public boolean retry(ITestResult arg0) {
		if(cur<=max){
			cur = cur+1;
			return true;		
		}
		return false;
	}
}
